﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DoAn.DAO
{
    public class XLMADAO
    {
        public string Get_Day()
        {
            string str = DateTime.Today.Day.ToString().Trim();
            return str;
        }
        public string Get_Month()
        {
            string str = DateTime.Today.Month.ToString().Trim();
            return str;
        }
        public string Get_Year()
        {
            int x = DateTime.Today.Year;
            x = x % 100;
            string str = x.ToString();
            return str;
        }
        public string Get_Hour()
        {
            string str = DateTime.Now.Hour.ToString();
            return str;
        }
        public string Get_Minute()
        {
            string str = DateTime.Now.Minute.ToString();
            return str;
        }
        public string Get_Second()
        {
            string str = DateTime.Now.Second.ToString();
            return str;
        }
        public string Get_ToDay()
        {
            string str = DateTime.Today.Year.ToString().Trim()+"-"+Get_Month()+"-"+Get_Day()+" "+Get_Hour()+":"+Get_Minute()+":"+Get_Second();
            return str;
        }
    }
}